/*rzxqFeC1Q4Nf7h12KpqtZWocJ8DA1kFS9ooCAYJwIV2iZVFZzN8aR1yJZaV2vsH6*/
/*
 * @Author: xiahui 
 * @PageInfo: 列表态修改 
 * @Date: 2019-01-16 09:02:40 
 * @Last Modified by: zhangmi
 * @Last Modified time: 2021-09-10 12:09:38
 */
import { ajax } from 'nc-lightapp-front';
import { URL, FIELDS, UISTATUS, PAGECODE } from '../../constance';

export default function(props, record, index) {
	let id = record[FIELDS.pk_ct_pu].value;

	ajax({
		url: URL.edit,
		data: id,
		success: (res) => {
			if (res.success) {
				props.pushTo(URL.card, { status: UISTATUS.edit, id: id, pagecode: PAGECODE.cardPagecode });
			}
		}
	});
}

/*rzxqFeC1Q4Nf7h12KpqtZWocJ8DA1kFS9ooCAYJwIV2iZVFZzN8aR1yJZaV2vsH6*/